import {createStore,applyMiddleware} from 'redux'
import createSagaMiddleware from 'redux-saga'
import routerReducer from './reducers/index'
import rootSaga from '../store/sagas/index'
const sagaMiddleware = createSagaMiddleware()

let store = createStore(
    routerReducer,applyMiddleware(sagaMiddleware)
)
sagaMiddleware.run(rootSaga)
export default store